package com.open.cloud.rbac.controller.application;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.inspur.micro.core.response.ResponseWrapper;
import com.open.cloud.rbac.entity.application.CoreApplicationInterface;
import com.open.cloud.rbac.object.application.CoreApplicationInterfaceDto;
import com.open.cloud.rbac.service.application.ICoreApplicationInterfaceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 应用接口表 前端控制器
 * </p>
 *
 * @author wangzengzhou01
 * @since 2024-12-23
 */
@Api(tags = "RBAC服务-应用接口业务")
@Slf4j
@RestController
@RequestMapping(value = "api/v1/core/application/interface")
public class CoreApplicationInterfaceController {

    @Resource
    private ICoreApplicationInterfaceService applicationInterfaceService;

    @ApiOperation(value = "分页查询")
    @PostMapping("/page")
    public ResponseWrapper getAppInterfacePage(@RequestBody CoreApplicationInterfaceDto obj) {
        IPage<CoreApplicationInterface> data = applicationInterfaceService.getAppInterfacePage(obj);
        return ResponseWrapper.success(data);
    }

}

